package com.sj.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * Created with IntelliJ IDEA.
 * User: xiaoqi
 * Date: 2022-08-03
 * Time: 下午 15:09
 * Description: 第三方账号关联表
 *
 * @author xiaoqi
 * @since 2022-08-03
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("third_party_know_relation")
@ApiModel(value = "ThirdPartyKnowRelation对象", description = "第三方账号与know平台关联表")
public class ThirdPartyKnowRelation implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("关联表id 自增长")
    private Integer id;

    @ApiModelProperty("用户id")
    private Integer userId;

    @ApiModelProperty("qq第三方唯一识别码")
    private String qqUnionId;

    public static ThirdPartyKnowRelationBuilder builder() {
        return new ThirdPartyKnowRelationBuilder();
    }

    public static final class ThirdPartyKnowRelationBuilder {
        private Integer id;
        private Integer userId;
        private String qqUnionId;

        private ThirdPartyKnowRelationBuilder() {
        }

        public ThirdPartyKnowRelationBuilder id(Integer id) {
            this.id = id;
            return this;
        }

        public ThirdPartyKnowRelationBuilder userId(Integer userId) {
            this.userId = userId;
            return this;
        }

        public ThirdPartyKnowRelationBuilder qqUnionId(String qqUnionId) {
            this.qqUnionId = qqUnionId;
            return this;
        }

        public ThirdPartyKnowRelation build() {
            ThirdPartyKnowRelation thirdPartyKnowRelation = new ThirdPartyKnowRelation();
            thirdPartyKnowRelation.setId(id);
            thirdPartyKnowRelation.setUserId(userId);
            thirdPartyKnowRelation.setQqUnionId(qqUnionId);
            return thirdPartyKnowRelation;
        }
    }
}